//
//  MSEditUserCell.m
//  MS
//
//  Created by Yuan on 13-4-14.
//  Copyright (c) 2013年 He Yuan. All rights reserved.
//

#import "MSEditUserCell.h"
#import <QuartzCore/QuartzCore.h>

@implementation MSEditUserCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        self.textLabel.textColor = [UIColor grayColor];
        self.textLabel.font  = FONT_NORMAL;
        self.imageView.layer.cornerRadius = 4.0;
        self.imageView.layer.masksToBounds = YES;
        self.textLabel.textAlignment = UITextAlignmentLeft;
        self.detailTextLabel.font = FONT_NORMAL;
        self.detailTextLabel.numberOfLines = 0;
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.imageView.bounds = CGRectMake(0,0,34,34);
    self.imageView.frame = CGRectMake(5,5,34,34);
    self.imageView.contentMode = UIViewContentModeScaleAspectFit;
//    CGRect tmpFrame = self.textLabel.frame;
//    tmpFrame.origin.x = 77;
//    self.textLabel.frame = tmpFrame;
//    
//    tmpFrame = self.detailTextLabel.frame;
//    tmpFrame.origin.x = 77;
//    self.detailTextLabel.frame = tmpFrame;
    
}

@end
